package giectech.spring.data.service;

import giectech.spring.data.model.Coffee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Administrator
 * @title: CoffeeService
 * @projectName springnewbucks
 * @description: TODO
 * @date 2022/8/1915:51
 */
public interface CoffeeService {



    List<Coffee> findOneCoffeeByName(String name);

    Coffee findOneCoffeeById(@Param("id") long id);

    int save(Coffee coffee);

    int updateByPrimaryKey(Coffee record);

    int deleteByPrimaryKey(Long id);

}
